package com.mnyc.research.mapper;

import java.util.List;

import com.mnyc.research.domain.JyActivityTeacherRela;
import org.apache.ibatis.annotations.Param;

/**
 * 基础字段Mapper接口
 *
 * @author ruoyi
 * @date 2025-08-08
 */
public interface JyActivityTeacherRelaMapper {
    /**
     * 查询基础字段
     *
     * @param id 基础字段主键
     * @return 基础字段
     */
    public JyActivityTeacherRela selectJyActivityTeacherRelaById(Long id);

    /**
     * 查询基础字段列表
     *
     * @param jyActivityTeacherRela 基础字段
     * @return 基础字段集合
     */
    public List<JyActivityTeacherRela> selectJyActivityTeacherRelaList(JyActivityTeacherRela jyActivityTeacherRela);


    //    通过主表Id和类型进行删除
    List<JyActivityTeacherRela> selectRelaListByMainIdAndType(@Param("mainId") Long mainId, @Param("type") String type);

    //    通过主表Id和类型进行删除
    int delleteByMainIdAndType(@Param("mainId") Long mainId, @Param("type") String type);

    int batchInsertRela(@Param("relaList") List<JyActivityTeacherRela> relaList);
}
